package com.example.generalMessage;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @Author 何志鹏
 * @Date 2022/8/30 14:16
 * @Version 1.0
 */
@Component
@RocketMQMessageListener(consumerGroup = "deer_message_push", topic = "topic1")
public class RocketMQConsumer  implements RocketMQListener {


    @Override
    public void onMessage(Object message) {
        System.out.println("收到的消息为 ================================================: " + message);
    }
}
